Fix problem with rename files