fix rules.sh