Fix bug in sockjs adapter