Problems with ML optimizer: bad effect