fix compile_term and test multiply instr