Correct logic bug in an example.
PR: 28696 Submitted by: Giorgos Keramidas <keramida@ceid.upatras.gr>