Fixes sending issue when using async sockets.