Fix extension loading