Fix bit flag checks