fix an extension bug