fix the bug of folding for different languages