fix receive bug