fix notnull settings