fix periodicity collision bool array.