fix reference error for scores in ray