Fix infinite loop in Dice method.