fix simple recursion case