Fix memory autoreleasing issue for iOS 5