fixed bug in name change with two variables.