Correct problems with the code snippets.