Avoid crash when draw string.