Fixes #2: empty files with 'Offset out of bounds'