fix wrong replica IP, logging