fixed n+1 query in rendering backoffice pages