[PATCH] PacketAssert: bugfix and code cleanup