fix cuboid number count math