TK really seems to have a problem to have a plane ready for this flight.
Checking several days of flight history, it seems they use a plane with a scheduled arrival to Istanbul after the scheduled departure time for TK164.
TC-LGP
July 29: TK69 BKK - IST Landed 04:17+1 (Scheduled 5:20)
July 30: TK164 IST - HAN 1:55 Delayed Departure 6:42
July 30: TK165 HAN - IST Est. Scheduled 5:20+1
July 31: TK164 IST - HAN Estimated Departure 6:31
TC-LGD
Jul 27: TK57 CGK - IST Landed 3:53+1 (Scheduled 4:55)
Jul 28: TK164 IST - HAN 1:55 Delayed Departure 6:12
Jul 28: TK165 HAN - IST Landed 4:24+1 (Scheduled 5:20)
Jul 29: TK164 IST - HAN 1:55 Delayed Departure 6:22
TC-JOJ
Jul 25: TK1828 CDG - IST Landed 0:50+1 (Scheduled 0:20)
Jul 26: TK164 IST - HAN 1:55 Delayed Departure 3:15
TC-LGB
Jul 24: TK85 MNL - IST Landed 4:48+1 (Scheduled 5:10)
Jul 25: TK164 IST - HAN 1:55 Delayed Departure 7:13