fixes issue with error occuring from request object