Fix delay line indexing out of bounds in rare cases