diff --git a/src/vlist.c b/src/vlist.c
index 77cd51b6862bda6fb0bafdcced249c908bb82ae8..5908dbbc8d1dc38a45d99114a0527fd53cbdc8ae 100644
--- a/src/vlist.c
+++ b/src/vlist.c
@@ -465,6 +465,8 @@ vlist_generate_zaxis(int vlistID, int zaxistype, int nlevels, const double *leve
       query.zaxistype = zaxistype;
       query.nlevels = nlevels;
       query.levels = levels;
+      query.lbounds = lbounds;
+      query.ubounds = ubounds;
 
       if ((zaxisglobdefined = (cdiResHFilterApply(getZaxisOps(), vgzZAxisSearch, &query) == CDI_APPLY_STOP)))
         zaxisID = query.resIDValue;