Fix json sources and index loading.