Fix latch counter bug with playback