fixed the use of uninitialized values in the text interface