Detecting and circumventing sources of inaccuracy in flow analysis