Fixed clearing tracks in event callbacks.

closes #134