fix a bug on nullable rule.