So I'm using InvMenu to create a chest inventory and whenever I do this $menu = InvMenu::create(InvMenu::TYPE_CHEST); $menu->send($player); then I create a task to remove the window $player->removeWindow($menu->getInventory()); after I remove the window, I cannot access any inventory not even my own Does anyone know why does this happen and how to fix it?