protects flow when measurements.first is nil