packet: fix bugs around no arguments