Fix rule context if no rules in state yet