fix bug for pdjg