Fix checking bit 3 of the flags