fix bug when sending to nodes with smaller ids than the node sending