fix icmp handling