fix moveTo according to coords