Fixed rule_answer bug with flags.