query-filetype bug fixed