Fix some bugs in clans