fixed iterator len and getitem