Changed recursion stop condition.