fix crash problem with font