diff --git a/XmlSchemaClassGenerator.Tests/xsd/simple/simple.xsd b/XmlSchemaClassGenerator.Tests/xsd/simple/simple.xsd
index a616bcb8..7ba3388e 100644
--- a/XmlSchemaClassGenerator.Tests/xsd/simple/simple.xsd
+++ b/XmlSchemaClassGenerator.Tests/xsd/simple/simple.xsd
@@ -147,6 +147,7 @@
+
diff --git a/XmlSchemaClassGenerator/TypeModel.cs b/XmlSchemaClassGenerator/TypeModel.cs
index 9c8aded9..3a0e10fe 100644
--- a/XmlSchemaClassGenerator/TypeModel.cs
+++ b/XmlSchemaClassGenerator/TypeModel.cs
@@ -648,7 +648,6 @@ private bool IsNillableValueType
get
{
return IsNillable
- && !IsNullableValueType
&& !(IsCollection || IsArray)
&& ((PropertyType is EnumModel) || (PropertyType is SimpleModel && ((SimpleModel)PropertyType).ValueType.IsValueType));
}