Fixed issue with hessian in restricted variance case