Fixed variable naming problem