Fixed verification of signed packets

and fixed a typo