Corrected a misnamed variable reference