Jep thats the problem. If i log off my main, it works perfectly.

If i log him on, lets say hes in dalaran and all my slaves are in taunka village, the macro doenst work anymore.