reset flag for global event