(refs #514) Fix problems of renaming repository.

Fixed.