Fix for occurance where socketVariables[socket.id] is not defined