fix defect of modify extension

when using modify extension with other, there may be defect