fix typo and key reference