fixed juding scores for rails 4