fixed incorrect variable call