Mistake in generate_script_docs corrected