fixing a bug where recordings would stop after some time