fixed twod_lamdba_fit and did some set_attr for the remaining lost vars