Fixed bug with IP forwarding check