"Accessed none trying to read property" when trying to close Inventory