fix bug for require restify