fix typo logging missing index errors