fixing bug, where the array member of the defect list was shared between instances