Fixed a bug that called an old version of max_flow.