fix multithreaded bug on firewalls