Fix a code snippet