fix typo in rightkey handling.