fixed the bug when clicking on a mark that already has  the pop-up displayed