Fixed another issue with secondSolution()