fixed bug that prevented firing events in "fire" function