fix network flow