Fixed for loops gotoing