a bug was fixed in manageCoalitions function