Fixed bug in example prog in appnote 011