fixed the bug in req.param('length') method