fixing read in client (reading from replica)