Fix for pre-8 iOS