fixed issue making cuboid not work