version number updated
Fixing Infinite loop

Fixed an infinite loop
Remove the .ToArray