Fix screen rotation and screenshot