fix bug in receive empty message