Fixed a bug when rolling dice