Bug Fix

iter was already being used in outer loop