fix typo that caused crash