issue #1097 array overrun because primary object 6 had a secondary object touching the edge and there were only five other secondary objects