cfix bug for initially empty file