fixes incorrect client socket type