Fixed bug with the request object