fix cpg position bug
fix part of file extension bug