fixed bug with calling onTopologyChanged instead of OnLeadershipChanged