Fix bug with coeff_a and coeff_b inversed