Fixed keyerror crash in recv_mesg