Bugfix, fixed crash when recording