Fixed variable names

Ya, I should really stop doing last minute changes in notepad....