Fixed variable name. Thanks Jacco van der Spek for proofreading.