fixed a bug in the events module that blocked custom events