Fix best mask evaluation