fix typo in name resolution func