fix bug that colwidth calulated is not accurate while having characters such as chinese or japanese