Fixed a potential bug with Flow::readLattice