Fix check function when recording.