fix bug in ndcg calc