fix formatting of events