Minor bug fix on simple-example.cc