Fixed screen rotating bug