Fixed various issues wrt sending the data from client to server