fixed the order of egos