fixes example in generate_fragments