fixed bug with restify