handle an empty list

* but it points to another bug (see TODO)