Fix text drawing