Fixes the event system.