fix if, pg-0
Merge pull request #33 from thomaroger/troger-fix-cond

fix condition