minor snippet bug