Spatial Tree bug fixing