Fix problem where RuleManager was being accessed before initialized.