fix a bug in CPDI, can run now