Fixes web socket failure.