fixed the flow map