Fix sending to server on connect