minor bug in event