fixed active events bug