fixed a bug with insert.asm