to ensure normal functioning of the warhead under these conditions , scientists at the nuclear weapons institute designed a safety device for the detonation system and reliable trigger and self-destruct systems .