Fix a serious bug of PAC