make sure non-overlapping chunks are handled correctly, fixes #1