Fix bug : If repository have multiple slave will broken.