sender: bug fix when overwriting hw ring buffer