Variable fix, remove repeated add from loop