Add zero check for solveAxis