sender.v: fix some bugs