Fix gen_hydrapacket