Fixed component destruction logic.