handle n+1 query errors in meals index