Fixed a glitch causing endless marker creation