This is a little strange for me. How does the FOM behave? according to the example, it needs to reach optimum in greyscal phase then begins the binarization. Maybe this is the cause? how many iterations you used? Please double this initial grescale interation number and see if it works.