Fixed bug with events within events.