test & fixed disposing bug