Fix extension loading.