fix rulename input