fix the flags enum