Fixed deletion of CriticalObject