fixed a bug while analysing vdataset