fixed bug with rename