fix CPDI 3D bug