Removed recomputing of scale in spatial_smooth. compute_scale reverts to STD if there are no negative values.