fixed a severe error in the term creation that generates garbage output, do not use the previous commit