fix firewall state detection