fixed a bug in the event firer