Fixed marker delete functionality