Fixed small bug in event handler.

Forgot to increase iterator.