Fixed bug with appending text.