Bugfix with exception when no rules_key is present