diff --git a/@netcdf_native/write.m b/@netcdf_native/write.m
index 53fd7efdd32ec5614082fd9b45d667876d385267..fe1bc120aebb3c52478a3630eedd37ee0b13b637 100644
--- a/@netcdf_native/write.m
+++ b/@netcdf_native/write.m
@@ -262,18 +262,16 @@ for i=1:numel(ncv_keys)
     % ------------------------------------------------------
     if isnumeric(value)
       switch s.type__
-        case {'double', 'real'}
+        case 'double'
           value = double(value);
-        case {'float', 'single'}
+        case 'float'
           value = single(value);
-        case {'int', 'integer', 'int32'}
+        case 'int'
           value = int32(value);
-        case {'short', 'int16'}
+        case 'short'
           value = int16(value);
-        case {'int8'}
+        case 'byte'
           value = int8(value);
-        case {'byte', 'uint8'}
-          value = uint8(value);
         case 'char'
           value = char(value);
       end
@@ -352,18 +350,16 @@ for i=1:numel(ncv_keys)
   % cast variable with the right netcdf nctype
   % ------------------------------------------
   switch s.type__
-    case {'double', 'real'}
+    case 'double'
       value = double(s.data__);
-    case {'float', 'single'}
+    case 'float'
       value = single(s.data__);
-    case {'int', 'integer', 'int32'}
+    case 'int'
       value = int32(s.data__);
-    case {'short', 'int16'}
+    case 'short'
       value = int16(s.data__);
-    case {'int8'}
+    case 'byte'
       value = int8(s.data__);
-    case {'byte', 'uint8'}
-      value = uint8(s.data__);
     case 'char'
       value = char(s.data__);
   end
diff --git a/tsg_util/castByteQC.m b/tsg_util/castByteQC.m
index a08ce7d8f13c9e5bc7618982f65ac99feef3e339..2389d32b9055fe47cb4fbf80199a7ee57cf0b985 100644
--- a/tsg_util/castByteQC.m
+++ b/tsg_util/castByteQC.m
@@ -8,6 +8,6 @@ function [tabOut] = castByteQC( code, tabIn )
 % $Id$
 
 
- tabOut = uint8(code) * uint8( ones(size(tabIn) ));
+ tabOut = int8(code) * int8( ones(size(tabIn) ));
  
 end
diff --git a/tsg_util/updateTsgStruct.m b/tsg_util/updateTsgStruct.m
index 6dbb73efc17cb720c63c9825e572c3ff5b928a2a..384a39f0726738400eb7c8e5d01e5018aa7f54d6 100644
--- a/tsg_util/updateTsgStruct.m
+++ b/tsg_util/updateTsgStruct.m
@@ -92,7 +92,7 @@ end
 
 % initialize POSITION_QC
 % ----------------------
-tsg.('POSITION_ADJUSTED_QC') = castByteQC( NO_CONTROL, tsg.DAYD );
+tsg.('POSITION_QC') = castByteQC( NO_CONTROL, tsg.DAYD );
 
 % Empty variables filled with NaN
 % -------------------------------