Fixed text handling bug.