correct bugs in rule based manager