Fixed bug in addAll method.