fixed bad rule_resolve bug
merged