Fix a bug

+ wrong condition in the “if” statement