Fix variable reference error.