fix a bug of rename