Fix for weird modal behaviour on iPhone4 with iOS 7