fix spatial indexing with multi spatial dims