fixes the phone not resizing correctly if starting in portrait mode issue