fixed bug in assignment of Ir_Ptr