quick bug fix for spatial edit