fix deletion of old registration agent relations before insert new relation of the same group
some fixes and text changes (ref: #545)