fixing typo in a snippet