Correcting file error