bug fix for socket.io authorization