fix undefined Req