Changed mdodelDef to modelDef

Changed mdodelDef to modelDef in two places in Backwards compatiblity for lifecycle callbacks