Fixed the screen rotation issue