don't ref variable that doesn't exist
fix typo