fixes a bug in flowlib (for me, at least)