Change to criterion on positive definite check (epsilon*10 instead of epsilon).