2 bug fixes

Bug in safety pair concordance check, bug in safety pair removal