fixes code snippets