fix the bug of dataset.h! So hard to find the pointer problems