fixed attachIR