fixed major bug related to IR and audio recording