fix stupidness with spatial indexing