fix for iOS registerEvent(message)