Update defender.ts