Fixed a rare crash bug related to making sets of cubes