Fixed bad shadowing variable in get request.