Rename vars in rule