Sorry, forgot to use $packet instead.

Little fix.