Fixing rid stuff, add rid for error ruleset.