diff --git a/src/parallel_io.c b/src/parallel_io.c
index 1d6188e80de98b812a4d48d593d5c3ab7402edfb..2f6b9402cc68034b587546486eb040a58924b5e0 100644
--- a/src/parallel_io.c
+++ b/src/parallel_io.c
@@ -131,8 +131,7 @@ void readArrayBackEnd(hid_t grp, char* name, enum DATA_TYPE type, int N,
   /* Read HDF5 dataspace in temporary buffer */
   /* Dirty version that happens to work for vectors but should be improved */
   /* Using HDF5 dataspaces would be better */
-  h_err = H5Dread(h_data, hdf5Type(type), h_memspace, h_filespace, h_plist_id,
-                  temp);
+  h_err = H5Dread(h_data, h_type, h_memspace, h_filespace, h_plist_id, temp);
   if (h_err < 0) {
     error("Error while reading data array '%s'.", name);
   }
diff --git a/src/serial_io.c b/src/serial_io.c
index 501ecd3d566dc0a770db4a6bd2bc60cdfda3477a..f77adeff245d6e81a38fda4a73192cf36ff6f2c3 100644
--- a/src/serial_io.c
+++ b/src/serial_io.c
@@ -134,8 +134,7 @@ void readArrayBackEnd(hid_t grp, char* name, enum DATA_TYPE type, int N,
   /* Read HDF5 dataspace in temporary buffer */
   /* Dirty version that happens to work for vectors but should be improved */
   /* Using HDF5 dataspaces would be better */
-  h_err = H5Dread(h_data, hdf5Type(type), h_memspace, h_filespace, H5P_DEFAULT,
-                  temp);
+  h_err = H5Dread(h_data, h_type, h_memspace, h_filespace, H5P_DEFAULT, temp);
   if (h_err < 0) {
     error("Error while reading data array '%s'.", name);
   }
diff --git a/src/single_io.c b/src/single_io.c
index 29f6f1ec8a2a397d4290e3b7e38caede026dc1f4..2dc2ed3e4070671944fc8df82f8b7d2840f0a274 100644
--- a/src/single_io.c
+++ b/src/single_io.c
@@ -111,7 +111,7 @@ void readArrayBackEnd(hid_t grp, char* name, enum DATA_TYPE type, int N,
   /* Read HDF5 dataspace in temporary buffer */
   /* Dirty version that happens to work for vectors but should be improved */
   /* Using HDF5 dataspaces would be better */
-  h_err = H5Dread(h_data, hdf5Type(type), H5S_ALL, H5S_ALL, H5P_DEFAULT, temp);
+  h_err = H5Dread(h_data, h_type, H5S_ALL, H5S_ALL, H5P_DEFAULT, temp);
   if (h_err < 0) {
     error("Error while reading data array '%s'.", name);
   }