Drop the two loops, and just use one. Thanks @colegeissinger