Fixed forloop yet again