BUG: Array size for hessian components was wrong in ridge methods