Fix to setText method.