Fixed #11, NPE in AllianceManager.