remove flaw in receive logic