fix startRecordingWindow