The code was previously appending the interrupt to after the end of the buffer, instead of at the end.