minor bugfixes for assert and websocketclient