another quick bug fix for spatial edit