12_24 some bugs fix

changed the IR code