fixed a typo: I believe the intent here was to do a bit test on the flag and not a logical &&