Fix for iOS5