Fix issue with one-line files