During the date, Brandes becomes suspicious of Liz's actions, and brings her to Cosmo, who believes Martin is at work and locks down the facility.
Brandes becomes suspicious of Liz's actions. This is during the date. Brandes brings her to Cosmo. This is during the date. Martin is at work. This is what Cosmo believes. Cosmo locks down the facility.