Fix populate and documents/index view