Fixed iOS 7.1 resize bug