minor change in model.cc migration, clear pointer