Fixed issue where SelectMany was infinitely recursive.