Fixed issues with host max-flow implementation.