fix for empty lists