fix bug in isActiveRoute helper