fixed same problems as of 1.20.4
fixed parents/children problem when get_samples() and get_datasets()