fix bug in dice change