fix CPDI2 2D bug