fix rational quadratic