Fixing event name writing