Fix init extension only if necessary