fix for the for  libwebsocket_write