Fixes the issue of list failing on a recursive call