fixed #363 and #360: Screen recording was causing error when fullscreen