fixed crash due to an anonymous ItemManager() being destructed without ever having been inited properly