Fixes iOS 7 compatibility