fix unloadloot hang issue.