fix check_chain in modules/iptables.py