Bugfix for iOS 5.1