fixed bug when modify_data = NULL and gen_inits = NULL