Fix for generic case of rules and systems.