fix undefine request error