fix file type bug