Fix bug in recursion\!