Tweaked RotateToPanel in an attempt to fix HandleNotCreated bug.