Fixed some issues with the die object.