Fix broken extension replacement