Fix doc snippets