Changed a variable name which could have caused confusion