Fix mistake in appending list to list of folders.