fix some bug for aicpd