fix script model_and analyze