cc/controller: fixed rule with index