Fix crash bug when using unknown character and text align mistake