ex12: workaround for a bug in the generate_data() template [fix]