Fix bugs in pebble examples.