Fix createWsUrl