Fixed issue with socket.io listening to same event multiple times.