fix typo that caused a seg in presesnce