Fix models and index page loading.