ensures tail isn't written with no data