Workaround for problem with 0 length files