Fix for solving cubics.