solve filetype detection not working problem.