fix bug #3690

removed invalid condition, it is always false
Merge pull request #2748 from jet47:fix-bug-3690