diff --git a/dist/js/iziToast.js b/dist/js/iziToast.js
index <HASH>..<HASH> 100644
--- a/dist/js/iziToast.js
+++ b/dist/js/iziToast.js
@@ -456,7 +456,7 @@
 		}
 
 		if (!isNaN(settings.zindex)) {
-			$toast.style.zIndex = settings.zindex;
+			$wrapper.style.zIndex = settings.zindex;
 		} else {
 			console.warn("["+PLUGIN_NAME+"] Invalid zIndex.");
 		}
fix zindex and isClosed