Fixed another bug in onNextN