fixed n + 1 query on friends index page