Fixing nested list