fixing a problem if the mediation server initiates the rekeying