key_commit: fixed bug with offerChecknumber switch