fixes serious bug in spatial bounding box function