addingText undefined fixed.