Fixed bug in MoveNext.