fixin duplicates events of sockets