Fix bug which prevented hiding of selected markers.