Fixed the bug of not setting the location field of the instruction in ad...

...dInstruction(i,instruction) method