fix dynamically updating marker