Fixed a bug in the subject example program