change loops to the same for(Object obj : objects)
Fixed bug by changing ArrayLists to CopyOnWriteArrayLists