fixed missing global event flags