Fixed bug on MarketRuleManager

- MarketRuleManager was incorrectly using the OldState when applying
rule definitions