fixed segmentation fault caused by malformed attribute certificates