Fixing divide by zero error in scores