fix typo on destructuring