Fix for iOS7 compatibility

I've fixed for iOS 7 layout problem.