i use this code to update the position and remove the old one, but sometimes it does not remove the old position and it show multiple markers (new one position and old ones)