cgiar: added missing flush