fixed incorrect variable