fix dispose error