Fixed score miscalculation