fix autoPath and only set active for li elements