Fixed incorrect variable