DOC: avoid side effects in examples