Fixed toList method.