bugfix: 'next_offset' has to be modified instead of 'offset', because 'offset' get's overwritten in 'next' method. testing.