Fixed an issue when updating events to track