set the uri correctly