fixed bug in query parser and telnet interface.