Fix misnamed variable when calling method