fixed a bug in CuClass