fixed crash on pocket unload