Changed a variable name to fix a bug