fix typo and read property type of undefined