event register fix