fix a bug with 'file_exts