Fix bugs of flow-dumper.rb