fix gc and plugins extends bugs

fix gc and plugins extends bugs