fixed a typo: I believe the intent here was to do a bit test on the flag and not a logical &&
Merge pull request #422 from gmelika/master

fixed a typo: I believe the intent here was to do a bit test on the flag...