Fixed an infinite loop within the universal 'getNext()'-method