corrected Hessian for sphere function