Correcting file type