fix for iOS5/6 SDK