bug with events