fixed a regression in rename