fix initial length for websock session