Fix bug setting up base-uri once session is created