Bugfix in flow module