fix empty lists