Solved listToNumber problem