Fixed bug with empty on FlattenOnDemandVector