Fixed bug in event processor