fixed an error with rename