Fixing misnamed variable