Fixed a bug on the cube.