Tomorrow is Yesterday - S1-E20
Continuity mistake: When Kirk and Sulu enter the records room, they pick the lock. Later when they beam the officer back down, he enters the room without unlocking the door. The room should be locked since they beamed him down in the "past" erasing their having been on Earth and in the records room.