fix ipd score bug