Fix working iterative -> recursive