fixed a few bugs on multirules. One coloring bug still needs fixing.