Fix Rotation Bug on Resize