fix request handler.