Fixed incorrect variable reference.