fix smoothing before hessian computation