Fix bug found by Yong (thanks for reporting it!) computing criterion in EQB.