fix wrong file type