Fix outdated event reference error