Fixed ip bans when importing having by as the reason and vice versa