bugfixed isActive with custom routes