Having Declare War on Hostile Action set makes it so that if someone in your faction attacks the trading guild, it sets them as enemy. The only way to change it back is through using starmote, so this should be fixes as not all players have acess to that.