Fix the bug of font-style changing code