Fix wrong interfaces variables in rule* templates