Fix: Code for converting the type of a new event to a string was missing