Fix bug with zero bytes recordings