Corrected issues in Spatial Index