Fixed logic error in addAll()