fix misnamed variable