Fixed mistake in the quadratic solver