fix nested list