correcting empty file