fixed marker clearing bug