Fixed a bug where the RepositoryCollection lost the mapping data after a chaining method.