Fixing broken recursion, needs to dup array