Fixing bug when clicking twice in mark