Fixing variable name error