Fixed clearing tracks in event callbacks.