fixed bug in score calculation with non-string fields