Fix for X Y location when exiting during animation