checking for damp algorithm fixed in case opt_algorithm is None