bugfix: last item in collection cannot be read. (2)