fixed disposing plugin