fixed redrawing issue after adding markers