bugfix for recording