fixed the bug that a node can process a packet that does not belongs to it