Fixed marker repetition bug