fix a few issues in the rules