Fixed unexpected case in packet forwarding