fix bug that all the best leaf still to be assigned a contrast set