fix extension loading