Fixed the bug of not setting the location field of the instruction in addInstruction(i,instruction) method