fix bug in dice_coef