Bug fix in getTargetScaleScore from previous commit