fixed model update bug.