Do not use bit mask to test flags