Fix a bug of a spatial atom with multiple locations