event types bug fixed