fixes nav active state issue.