Fix an indexing bug when disarming engine traps.