fix typo that causes crashes