fix regression with saving an empty iterable