Code snippets correction