fix for iOS5