Fix buggy flag detection