* fixing bugs relating the alliance

* [BUG#10337]
* [BUG#10794]