fix enumeration of inner list