Fix a logic bug in readme example