diff --git a/jquery.scrollify.js b/jquery.scrollify.js
index <HASH>..<HASH> 100644
--- a/jquery.scrollify.js
+++ b/jquery.scrollify.js
@@ -173,6 +173,7 @@
 						console.warn("Scrollify warning:", window.location.hash, "is not a valid jQuery expression.");

 					}

 				}

+				currentIndex = index;

 				$(settings.target).promise().done(function(){

 					currentIndex = index;

 					locked = false;
fix issue #<I>: before()/after() doesn't trigger