Fix bet thread logic and delete update resource