Fixed bug with repeated text append