fix changed Flow api