bugs squashed in qchat.c