iOS 6 compatibility fix