fix condition
Merge pull request #1698 from mauk81/develop

fix condition