fix EnumSpec
fix JoinCriteriaSpec