Fixes empty list being left after calling chunks'.