Fixed a small bug in the resetting of active markers