fixing nested list