RAF fix for iOS6