fixing marker bug