Fix receive bug