Condition modified in recursion