fix resource never return back