fix empty lists in expansion