fix dispose()