fix issue if event has no category
fix issue where generated flag was tripped in auto draft