correct the wrong output of max uncertainty/threshold