Fixed mode switching bug during recordings