fixes a variable naming error