Fix replay when the ringbuffer gets full and loops

1 job for master in 7 minutes and 41 seconds (queued for 16 seconds)