if loop only goes through once

Printable View