Fix the AttributeError getText