fix schema for events