fixing weird bug involving multiple adds to completed array