Fixed a bug with request context passing