Fix typo mistakes in code samples