fix nested list problem