Refactor misnamed variable