bug fix for random font related crash