Fix errors in the GenericList class