Replica - connection with client working. integer values transferred incorrectly