Fix loadExtension callback timing.