fix text drawing warning issue