Fix flow direction.