fix a model invalidate bug