Fix files rename bug