Fixes score calculation