Fix to cubic solver.