fixed the selected marker bug