bug during renaming