Fixed variable typo... woops... I cant test on my own machine because of the stupid template bug