Fixing some errors in code snippets.