fixed error in generate_output where url was not set