Fixed some bugs related to reading/savings guilds from/to the file