Fix PrependExtension to use config values for index and type