[-] fix issue#1
[-] fix issue#1, remove debug output
[-] fix issue#1, for replica