fix check req.version bug