fixed the charstyle behavior issue