Fix a bug occuring when selecting the span function when creating a vstream