text drawing fix