Fix for iOS 7.x memory leaking