- fix off-by-one in filelists handling