Fixed infinite marker add loop