cuboid mode bug fixed