fix a bug/typo in sending inputs to receiver