fix reference to event