fixed screen orientation change in ios 7 and before