fix dispose issue