text_append variables get modified