fixed wrong nil if nil is set to non-default value