Uncommented the lines that set prevModel=oModel.