spatial bug fix