fixed n+1 query in nav