packets: fix syntax errors