typo leads to NULL deref