fix a mistake in a logic condition
Merge pull request #5536 from chinhodado/patch-3

fix a mistake in a logic condition