fixing firewall prune function