Fix for solving certain cubics.