Corrected misnamed variable