fixed model generation error, gives extra condition for int data model