Reduce your code to a small sample that shows the problem and post it.
In reply to Re^3: merging arrays by GrandFather in thread merging arrays by Anonymous Monk