fix debug output by casting currentRule from rule_t to int