fixed but where currentPath was overwritten by routePath (doh)