Fixed incorrect variable use.