fix objectmanager destructor

I derped up with my optimizations commit