fixed bug of rename