fixed check_rule...