The file type check has been fixed