key_commit: fixed a bug in the new bsid method