fixes `la` and `lg` telnet commands