fixed marker switch bug