Fixed masking in websocket code