Fix memory error in Text::draw()