Connection reconnection during master change fixed