Fixed bug: events failed to fire.