fix screen orientation bug.