Fixed orientation change bug in IOS7