Fix bad nDCG computation