fix the multiple loading of dataset