Hi @mn1712trungson,
Thanks to your advice, I was able to fix the issue. I'm now able to open my patched rom easily and very happy now :D.
For those that are interested, I made a small python function to update the arm9 values based on the instructions.
It is not rocket science but it may help...