Fixed variable name error
Be able to compile it with C++11 standards