cube class small error