Fixed error with IrDA detection