fixed bug deletion on spatial index