fixed a bug where the Text Script would append text in the wrong order