Fix the bitflags