Fixed variable reference error.