fix some bugs in request controller