Minor Fix of score function

yeah