Fixed marker addition bug