Fixed stupid errors in native Events code