Fix code snippets