Fix bug of renametool