fix cyclic, only one in the array was treated as cyclic