fix global annotation to model generator