Undefined property $request

Fixed call to undefined property, had to be a variable