fixed setUri logic in buildRequest