fixed screen orientation bug