fix bug on choose file type