cleaning event ending flow, cleaning map on each re-draw