fixing shift when animating to X