Fixing code snippets