fix typo that causes table access error