fixed compile bug when overconfident mode is enabled.