lib: fix flow resolution