Updating folder ids.