fix file_type when suffix is different