fixed null pointer exception when attr name is not specified
debugging segmentation of a dataset