fix excetpion in example