Fix typo and example logic