fix dispose treading issue