Fixed transposed variables in rename() method