Fixed issues with code snippets