fixed an error in the example