resolved seg fault: improperly initialized Minimizer