Fixed the bug where no new cubes were created.