Fix a code of adapter for iOS #10