fixed problem where client was sending some bad data to server